package com.example.demo.model;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-09-05
 * Time: 20:30
 */
@Controller
@ResponseBody
@Slf4j
public class LogController {
    @RequestMapping("/log")
    public void log() {
        log.trace("trace 级别的日志信息");
        log.debug("debug 级别的日志信息");
        log.info("info 级别的日志信息");
        log.warn("warn 级别的日志信息");
        log.error("error 级别的日志信息");
    }
}
